import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
  Generated,
} from 'typeorm'

@Entity()
export class Crud {
  @PrimaryGeneratedColumn('uuid') //自动递增的uuid
  id: string
  @Column({ type: 'varchar', length: 16 })
  name: string
  @Column({
    type: 'varchar',
    comment: '注释',
  })
  desc: string
  @CreateDateColumn({ type: 'timestamp', update: false, comment: '创建时间' })
  create_time: Date
}
